虎牙直播[官].js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. var rule = {
  2. title: '虎牙直播[官]',
  3. host: 'https://www.huya.com',
  4. homeUrl: '/cache.php?m=LiveList&do=getLiveListByPage&gameId=2168&tagAll=0&page=1',//用于"分类获取"和"推荐获取"
  5. url: '/cache.php?m=LiveList&do=getLiveListByPage&gameId=fyfilter&tagAll=0&page=fypage',
  6. class_name: '娱乐&网游&单机&手游',
  7. class_url: '8&1&2&3',
  8. // detailUrl:'https://m.huya.com/fyid',//二级详情拼接链接(json格式用)
  9. detailUrl: 'http://live.yj1211.work/api/live/getRoomInfo?uid=&platform=huya&roomId=fyid',//二级详情拼接链接(json格式用)
  10. filterable: 1,
  11. filter_url: '{{fl.cateId}}',
  12. filter_def: {
  13. 8: {cateId: '2135'},
  14. 1: {cateId: '1'},
  15. 2: {cateId: '1732'},
  16. 3: {cateId: '2336'}
  17. },
  18. filter: 'H4sIAAAAAAAAA51bWW9bR5b+K4afZoAMQN6NZL+5Y7i7k04cJ5PBLOgHY+JpDJK2B86kMY1GAFIURcoUKdGiRNEkJVGrtVMSJXEnML+FdZen/IU5xauq+opOHnoAPti6l7Wc5TvfWfjXh9GHv/q3vz789sVfHv7q4b8//+8Xv/vm4UcPXz7/0wv6P8steJd9+v+fn3/3w4vpiy/pz37+MqjN+6myV9viD+lP0Yc/fhQ+/Pgr4/5vcceQf/WOxv7tGy914vXG948t+fC7V99NeqWgeTvp5tkgd//ctuK2fMWtbHtry2y/5PUOxPOEGZPPJ/0iW6jdP4lFYgl1nie/fXz/dwf/HiQX3NyGOL6ptvLmFr2t68lg279o3z82E6Z8/PjpPz4SN1T7s3pr0smzreKkU2T5LNs9uX9FiSA4K7PMcNJZ99aWhITU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os0rHpnFuOisUOI667nGLPdE16xwoJYDnTEEcaxtupsndEStdRCPYC0dpptnPF0fyObIWnzvFwStN6MO0NO1MTtf1OZ4iRqBNeWvvXfZRDxsHoQVWzlhSDEMbj7NhSUck5mK/YyZtgtxndGeNipoIjnkiefcKVdPZuqw04FRaelQnAo6Y1bjc+5qitvBkOb1G1M3qcJw5YfpfVgEmDq8yGZj+Ns13lWgVboNlSfGcPSMtTa86tA7SKlB7BiSELaSC7IljlJ77dmg4WD6xDkceRTx3mn1SeI6doMgNzHoP3Qk1Wmx4mAdQeMtpTj+RVLVLRDEFvgPhFj3mnSvuvSUCWm9Ff/NJfwKJoF86eyALR2rNI0EgkSVnkzru0NJIeN4z/yiP2yFE8LChWx0ZJhcn82roBcBg5/8rXpP6c8ysVzaPqa3iH59UJS2oeGMg68zcTeiY0zqhsN+40j9IMmytVEr3tzS8mgbez6/mF4ajtZQUmXIf+D/IUhaKEw6auwSBOqTw11ehoWEENXue+/YVQIshd+fhYxHSc6IATaEjTets2th/TfEhvAHicKETB5Dpv2p+N/en7qvNtclIcByCYeNQ2jiYNfyju2ty++AsGWtX6XPYMTVd25+i6VuWXpZOgmQHLeSgeQ/BhbO3l9yuk7mJ3uN086PARvvsWVZedR+2NKfD2T3jSwDgSLN1hte8YjWhlUtMFJKvnKycav9FmXKs4jbsKV1uSt0s8If2gkpmEAl7xlavaVqAzamRsFOnSUHSrhQzJ2OxQnF49C1f7tLGp70xLixjeOVoZInXVnXjSFxPiypX6AadIWpMf34f2zKYNEIPQAA',
  19. searchUrl: 'https://search.cdn.huya.com/?m=Search&do=getSearchContent&q=**&uid=0&v=4&typ=-5&livestate=0&rows=40&start=0',
  20. searchable: 2,
  21. quickSearch: 0,
  22. headers: {
  23. 'User-Agent': 'MOBILE_UA'
  24. },
  25. timeout: 5000,
  26. limit: 8,
  27. play_parse: true,
  28. lazy: '',
  29. lazy: `js:
  30. if (/m\\.huya/.test(input)) {
  31. rule.sniffer = 0
  32. }
  33. `,
  34. 推荐: `js:
  35. let d = [];
  36. let jo = JSON.parse(request(input)).data.datas;
  37. jo.forEach(it => {
  38. d.push({
  39. url: it.profileRoom,
  40. title: it.introduction,
  41. img: it.screenshot,
  42. desc: '👁' + it.totalCount + ' 🆙' + it.nick,
  43. })
  44. });
  45. setResult(d);
  46. `,
  47. 一级: `js:
  48. let d = [];
  49. let jo = JSON.parse(request(input)).data.datas;
  50. jo.forEach(it => {
  51. d.push({
  52. url: it.profileRoom,
  53. title: it.introduction,
  54. img: it.screenshot,
  55. desc: '👁' + it.totalCount + ' 🆙' + it.nick,
  56. })
  57. });
  58. setResult(d);
  59. `,
  60. // 二级:'*',
  61. 二级: `js:
  62. try {
  63. if (typeof play_url === "undefined") {
  64. var play_url = ""
  65. }
  66. var jo = JSON.parse(request(input)).data;
  67. VOD = {
  68. vod_id: jo.roomId,
  69. vod_name: jo.roomName,
  70. vod_pic: jo.roomPic,
  71. type_name: "虎牙." + jo.categoryName,
  72. vod_director: '🆙 ' + jo.ownerName,
  73. vod_content: "🏷分区:虎牙" + "·" + jo.categoryName + " 🏷UP主:" + jo.ownerName + " 🏷人气:" + jo.online + (jo.isLive === 1 ? " 🏷状态:正在直播" : "状态:未开播")
  74. };
  75. let episodes = JSON.parse(request("http://live.yj1211.work/api/live/getRealUrlMultiSource?platform=" + jo.platForm + "&roomId=" + jo.roomId)).data; //多线路
  76. if (Object.keys(episodes).length !== 0) {
  77. let playFrom = [];
  78. let playList = [];
  79. let kplayList = [];
  80. Object.keys(episodes).forEach(function(key) {
  81. playFrom.append(key);
  82. kplayList = episodes[key].map(function(it) {
  83. let title = it.qualityName;
  84. let playUrl = it.playUrl
  85. return title + "$" + play_url + urlencode(playUrl)
  86. }).join("#")
  87. playList.append(kplayList);
  88. });
  89. let vod_play_from = playFrom.join("$$$");
  90. let vod_play_url = playList.join("$$$");
  91. VOD["vod_play_from"] = vod_play_from;
  92. VOD["vod_play_url"] = vod_play_url;
  93. } else {
  94. var d = [];
  95. episodes = JSON.parse(request("http://live.yj1211.work/api/live/getRealUrl?platform=" + jo.platForm + "&roomId=" + jo.roomId)).data; //单线路
  96. var name = {
  97. "OD": "原画",
  98. "FD": "流畅",
  99. "LD": "标清",
  100. "SD": "高清",
  101. "HD": "超清",
  102. "2K": "2K",
  103. "4K": "4K",
  104. "FHD": "全高清",
  105. "XLD": "极速",
  106. "SQ": "普通音质",
  107. "HQ": "高音质"
  108. };
  109. Object.keys(episodes).forEach(function(key) {
  110. if (!/ayyuid|to/.test(key)) {
  111. d.push({
  112. title: name[key],
  113. url: episodes[key]
  114. })
  115. }
  116. });
  117. d.push(
  118. {
  119. title: "虎牙解析",
  120. url: "http://cfss.cc/cdn/hy/" + jo.roomId + ".flv"
  121. },
  122. {
  123. title: "解析1",
  124. url: "http://epg.112114.xyz/huya/" + jo.roomId
  125. },
  126. {
  127. title: "解析2",
  128. url: "https://www.aois.eu.org/live/huya/" + jo.roomId
  129. },
  130. {
  131. title: "解析3",
  132. url: "https://www.goodiptv.club/huya/" + jo.roomId
  133. },
  134. // {
  135. // title: "解析4",
  136. // url: "http://maomao.kandiantv.cn/huya1.php?id=" + jo.roomId
  137. // },
  138. {
  139. title: "解析5",
  140. url: "http://43.138.170.29:35455/huya/" + jo.roomId
  141. },
  142. {
  143. title: "解析6",
  144. url: "http://8.210.232.168/php/huya.php?id=" + jo.roomId
  145. },
  146. {
  147. title: "原址嗅探",
  148. url: "https://m.huya.com/" + jo.roomId
  149. },
  150. );
  151. VOD["vod_play_from"] = "播放源";
  152. VOD["vod_play_url"] = d.map(function(it) {
  153. return it.title + "$" + it.url
  154. }).join("#");
  155. setResult(d);
  156. }
  157. } catch (e) {
  158. log("获取二级详情页发生错误:" + e.message);
  159. }
  160. `,
  161. // 搜索:'json:response.3.docs;game_roomName;game_screenshot;game_nick;room_id',
  162. 搜索: `js:
  163. var d = [];
  164. let jo = JSON.parse(request(input)).response[3].docs;
  165. jo.forEach(it => {
  166. d.push({
  167. url: it.room_id,
  168. title: it.game_roomName,
  169. img: it.game_screenshot,
  170. desc: '👁' + it.game_total_count + ' 🆙' + it.game_nick,
  171. })
  172. });
  173. setResult(d);
  174. `,
  175. //是否启用辅助嗅探: 1,0
  176. sniffer: 1,
  177. // 辅助嗅探规则js写法
  178. isVideo: `js:
  179. log(input);
  180. if(/\\/huya/.test(input)) {
  181. input = true
  182. } else if(/\\.flv?|\\.m3u8?|\\.mp4?/.test(input)){
  183. input = true
  184. }else{
  185. input = false
  186. }
  187. `,
  188. }